class CreateSalaries < ActiveRecord::Migration
  def self.up
    create_table :salaries do |t|
      t.float :base
      t.float :bonus
      t.float :deduct
      t.date :paydate
      t.integer :status
      t.integer :teacher_id, :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :salaries
  end
end
